package com.gxa.service.parking;



import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.gxa.dto.parking.PSpaceSearchDto;
import com.gxa.dto.parking.ParkingSpacesDto;
import com.gxa.entity.parking.PRegion;
import com.gxa.entity.parking.Parking;
import com.gxa.entity.parking.ParkingSpaces;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yjl
 * @since 2022-10-11 10:05:39
 */
public interface ParkingSpacesService extends IService<ParkingSpaces> {

    PageInfo<ParkingSpacesDto> selectAll(PSpaceSearchDto pSpaceSearchDto, Integer pageNum, Integer pageSize);

    ParkingSpacesDto selectByid(Integer id);

    //增加
    void add(ParkingSpaces parkingSpaces);
    //查询所有的停车场
    List<Parking> queryParking();

    //根据停车场的编码查询区域
    List<PRegion> queryPRegion(String parkingNum);

    //更新
    void update(ParkingSpaces parkingSpaces);
    //删除

    void deleteById(Integer id);
}
